package com.javabi.htmlbuilder.html.element;

import com.javabi.htmlbuilder.html.HTMLBuilder;
import com.javabi.htmlbuilder.html.HTMLElement;
import com.javabi.htmlbuilder.html.HTMLElementName;

/**
 * An HTML Horizontal Rule Element.
 * <p>
 * &lt;hr/&gt;
 * </p>
 */
public class HorizontalRule extends HTMLElement<HorizontalRule> {

	/**
	 * Returns the element name.
	 * @return the element name.
	 */
	public HTMLElementName getElementName() {
		return HTMLElementName.HORIZONTAL_RULE;
	}

	/**
	 * Returns true to format this element.
	 * @return true to format this element.
	 */
	public boolean format() {
		return false;
	}

	/**
	 * Append this to the given html builder.
	 * @param html the html builder.
	 * @return the html builder.
	 */
	public HTMLBuilder appendTo(HTMLBuilder html) {
		html.empty(this);
		return html;
	}

}
